Everything about Polling Computer Science totally explained
Polling, or
polled operation, in
computer science, refers to actively sampling the status of an external device by a client program as a synchronous activity. Polling is most often used in terms of
I/O, and is also referred to as
polled I/O or
software driven I/O.
Polling is sometimes used synonymously with
busy-wait polling. In this situation, when an I/O operation is required the computer does nothing other than check the status of the I/O device until it's ready, at which point the device is accessed. In other words the computer waits until the device is ready. Polling also refers to the situation where a device is repeatedly checked for readiness, and if it isn't the computer returns to a different task. Although not as wasteful of
CPU cycles as busy-wait, this is generally not as efficient as the alternative to polling,
interrupt driven I/O.
In a simple single-purpose system, even busy-wait is perfectly appropriate if no action is possible until the I/O access, but more often than not this was traditionally a consequence of simple hardware or non-
multitasking operating systems.
Polling is often intimately involved with very low level hardware. For example, polling a parallel printer port to check whether it's ready for another character involves examining as little as one
bit of a
byte. That bit represents, at the time of reading, whether a single wire in the printer cable is at low or high voltage. The I/O instruction that reads this byte directly transfers the voltage state of eight real world wires to the eight circuits (flip flops) that make up one byte of a CPU register.
Further Information
Get more info on 'Polling Computer Science'.
|
External Link Exchanges
Do you know how hard it is to get a link from a large encyclopaedia? Well we're different and will prove it. To get a link from us just add the following HTML to your site on a relevant page:
<a href="http://polling__computer_science.totallyexplained.com">Polling (computer science) Totally Explained</a>
Then simply click through this link from your web page. Our crawlers will verify your link, extract the title of your web page and instantly add a link back to it. If you like you can remove the words Totally Explained and embed the link in article text.
As long as your link remains in place, we'll keep our link to you right here. Please play fair - our crawlers are watching. Your site must be closely related to this one's topic. Any kind of spamming, dubious practises or removing the link will result in your link from us being dropped and, potentially, your whole site being banned. |